import server from "../utils/request.js";

export function findAll(){
    return server({
        url:'/food',
        method:'GET'
    })
}

export function addOrder(data){
    return server({
        url:'/order/add',
        method:'POST',
        data
    })
}

export function findOrderByOrderId(orderId){
    return server({
        url:`/order/${orderId}`,
        method:'GET'
    })
}

export function pay(orderId){
    return server({
        url:`/order/pay/${orderId}`,
        method:'GET'
    })
}